package com.company.Thread.DelayQueue;

import java.util.concurrent.TimeUnit;

public class DelayDemo {
    public static void main(String[] args) {
        DelayOrderQueueManager manager = DelayOrderQueueManager.getInstance();

        manager.put(new DelayWorker(), 3000, TimeUnit.MILLISECONDS);
        manager.put(new DelayWorker(), 6000, TimeUnit.MILLISECONDS);
        manager.put(new DelayWorker(), 9000, TimeUnit.MILLISECONDS);
        // System.exit(0);
    }
}
